////////////////////////////////////////////////////////////////////////////////
//                                                                            //
// This file is a part of PMCG project. PMCG is the acronym of Physical       //
// Methods in Computer Graphics.                                              //
//                                                                            //
// Classical algorithms in computer graphics use discrete objects in 3D space //
// like vectors, matrices, triangles, planes. Physical way use an  analytical //
// objects like function, scalar and vector fields. Physical way gives new    //
// look to classical algorithms and allows to overcome some difficulties of   //
// pure geometric methods.                                                    //
//                                                                            //
// Project site:                                                              //
//     http://code.google.com/p/pmcg/                                         //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

#ifndef IOTRIMESH_H
#define IOTRIMESH_H

#include <string>

#include "TriMesh.h"

//! Read triangular mesh from obj file. Obj file contains list of vertices
//! and list of triangles in following format:
//!     v x0 y0 z0
//!     v x1 y1 z1
//!     ...
//!     f i0 i1 i2
//!     f i0 i1 i2
//!     ...
void ReadFromObj(const char * objFileName, TriMesh & mesh);

#endif // IOTRIMESH_H
